package com.strive.demo.web.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.strive.common.service.ISuperService;
import com.strive.demo.web.model.PageInfoModel;
import com.strive.demo.web.model.ShopModel;
import com.strive.demo.web.vo.ShopInfoVo;
import com.strive.fastdfs.model.StorePathModel;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/3/11 11:05
 * @Version 1.0
 */
public interface IShopService extends ISuperService<ShopModel> {
    List<ShopModel> queryShopInfo();

    boolean deleteShopInfo(Integer id);

    boolean initShopInfo(Integer nums);

    Page<ShopModel> queryShopInfoPage(PageInfoModel pageInfo);

    void downLoadFiles(Integer id, HttpServletResponse response) throws IOException;

    StorePathModel uploadFile(MultipartFile images);

    List<String> showShopImg(Integer id);

    String importFile(MultipartFile file);

    Boolean deleteShopFile(String path);

    Boolean addShopInfo(ShopInfoVo shopInfoVo);
}
